.message-h5-small-wrapper {
    .message-h5-small-badge {
        .message-h5-small-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 32px;
            height: 32px;
        }

        .adm-badge {
            top: 8px;
            right: 4px;

            .adm-badge-content {
                font-size: 12px;
            }
        }
    }
}

.message-h5-list-wrapper {
    .adm-list-body {
        border: none;

        .adm-list-body-inner {
            .adm-list-item {
                height: 80px;

                .adm-list-item-content {
                    height: 100%;
                    border: none;

                    .adm-list-item-content-main {
                        font-size: 16px;
                        // font-weight: bold;
                        color: var(--inbiz-color-heading);
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        word-break: break-all;

                        .adm-list-item-description {
                            font-size: 14px;
                            font-weight: normal;
                            color: var(--inbiz-color-secondary-text);
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            word-break: break-all;
                        }
                    }

                    .adm-list-item-content-extra {
                        height: 73px;
                        padding: 12px 0;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        align-items: flex-end;

                        .message-h5-list-item-time {
                            font-size: 12px;
                            color: var(--inbiz-color-secondary-text);
                            margin-top: 6px;
                        }

                        .message-h5-list-item-count-wrapper {
                            display: inline-flex;
                            vertical-align: middle;
                            box-sizing: content-box;
                            border-radius: 100px;
                            background-color: var(--color);
                            margin-bottom: 6px;
                            --right: 0;
                            --top: 0;
                            --color: var(--adm-badge-color, #ff411c);

                            .message-h5-list-item-count {
                                font-size: 12px;
                                color: var(--adm-color-text-light-solid);
                                box-sizing: border-box;
                                min-width: 8px;
                                padding: 1px 4px;
                                line-height: 12px;
                                white-space: nowrap;
                                font-weight: 400;
                                text-align: center;
                            }
                        }
                    }

                    .adm-list-item-content-arrow {
                        display: none;
                    }
                }
            }
        }
    }
}

.message-h5-grid-wrapper {

    .message-h5-grid-item {
        height: 122px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .message-h5-grid-badge {
            .adm-badge {
                top: 6px;
                right: 2px;

                .adm-badge-content {
                    font-size: 12px;
                }
            }

            .adm-badge-bordered {
                border: solid 2px var(--adm-color-text-light-solid);
            }
        }

        .message-h5-grid-item-text {
            width: 80%;
            text-align: center;
            margin-top: 10px;
            font-size: 14px;
            color: var(--inbiz-color-heading);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            word-break: break-all;
        }
    }
}

.message-h5-message-portal-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    background: white;

    .adm-nav-bar {
        .adm-nav-bar-left {
            .adm-nav-bar-back {
                .adm-nav-bar-back-arrow {
                    font-size: 18px;
                }
            }
        }

        .adm-nav-bar-title {
            font-size: 18px;
            color: var(--inbiz-color-heading);
        }

        .adm-nav-bar-right {
            font-size: 16px;
            color: var(--inbiz-color-primary);
        }
    }

    .adm-pull-to-refresh {
        height: calc(100% - 45px);
        overflow-y: auto;

        .adm-pull-to-refresh-content {
            .message-h5-message-portal-body {
                .message-h5-message-list-item {
                    .inbiz-message-template-error {
                        height: 50px;
                        color: #f00;
                        display: flex;
                        padding: 0 15px;
                        border-radius: 4px;
                        align-items: center;
                        justify-content: flex-start;
                        background-color: rgba(255, 33, 0, .1);
                    }
                }

                .message-h5-message-rich-item-wrapper {
                    height: 80px;
                    padding: 16px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;

                    .message-h5-message-rich-item-title {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        .message-h5-message-rich-item-title-text {
                            flex: 1;
                            font-size: 16px;
                            color: var(--inbiz-color-heading);
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            word-break: break-all;
                        }

                        .message-h5-message-rich-item-title-time {
                            font-size: 12px;
                            color: var(--inbiz-color-secondary-text);
                        }
                    }

                    .message-h5-message-rich-item-content {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        .message-h5-message-rich-item-content-text {
                            flex: 1;
                            font-size: 14px;
                            color: var(--inbiz-color-secondary-text);
                            overflow: hidden;
                            text-overflow: ellipsis;
                            white-space: nowrap;
                            word-break: break-all;
                        }

                    }
                }

                .message-h5-message-noTemp-wrapper {
                    height: 80px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 16px;

                    .message-h5-message-noTemp-wrapper-text {
                        flex: 1;
                        font-size: 16px;
                        color: var(--inbiz-color-heading);
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                        word-break: break-all;
                    }

                    .message-h5-message-noTemp-wrapper-text-time {
                        font-size: 12px;
                        color: var(--inbiz-color-secondary-text);
                    }
                }

                .message-h5-message-portal-loading {
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    margin-top: 200px;
                }

                .adm-error-block {
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    margin-top: 180px;

                    .adm-error-block-description {
                        margin-top: 10px;

                        .adm-error-block-description-title {
                            font-size: 14px;
                            color: rgb(204, 204, 204);
                        }
                    }
                }
            }
        }
    }
}

.message-h5-message-detail-portal-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: white;

    .inbiz-message-template-error {
        height: 50px;
        color: #f00;
        display: flex;
        padding: 0 15px;
        border-radius: 4px;
        align-items: center;
        justify-content: flex-start;
        background-color: rgba(255, 33, 0, .1);
    }

    .adm-nav-bar {
        .adm-nav-bar-left {
            .adm-nav-bar-back {
                .adm-nav-bar-back-arrow {
                    font-size: 18px;
                }
            }
        }

        .adm-nav-bar-title {
            font-size: 18px;
            color: var(--inbiz-color-heading);
        }
    }
}

.message-h5-message-noTemp-dialog {
    .adm-dialog-content {
        .adm-auto-center {
            .adm-auto-center-content {
                font-size: 16px;
                color: var(--inbiz-color-heading);
            }
        }
    }

    .adm-dialog-footer {
        .adm-dialog-action-row {
            &>button {
                font-size: 14px;
                color: var(--inbiz-color-primary);
            }
        }
    }
}